
<template>
    <rx-dialog @ok="handleSubmit" @cancel="cancel">
        <rx-layout>
            <template #middle>
                <a-form ref="form"  :model="mdl">
                  <a-form-model-item  :label="i18n('form.createByName','创建人名称')" name = "createByName">
                    <a-input :placeholder="i18n('form.createByName','创建人名称','input')" v-model:value="mdl.createByName"/>
                  </a-form-model-item>
                  <a-form-model-item  :label="i18n('form.genRecord','生成记录ID')" name = "genRecord">
                    <a-input :placeholder="i18n('form.genRecord','生成记录ID','input')" v-model:value="mdl.genRecord"/>
                  </a-form-model-item>
                  <a-form-model-item  :label="i18n('form.listId','列表ID')" name = "listId">
                    <a-input :placeholder="i18n('form.listId','列表ID','input')" v-model:value="mdl.listId"/>
                  </a-form-model-item>
                  <a-form-model-item  :label="i18n('form.listName','列表名称')" name = "listName">
                    <a-input :placeholder="i18n('form.listName','列表名称','input')" v-model:value="mdl.listName"/>
                  </a-form-model-item>
                </a-form>
            </template>
        </rx-layout>
    </rx-dialog>
</template>
<script>
    import FormDownloadRecordApi from '@/common/api/form/formDownloadRecord'
    import {RxDialog,BaseFormModel} from '@lowcode/jpaas-base-lib';


    export default {
        name: 'FormDownloadRecordEdit',
        mixins:[BaseFormModel],
        components: {
            RxDialog,
        },
        data(){
            return {
        }

        },
        methods: {
            i18n(name,text,key){
                return this.$ti18(name,text,"FormDownloadRecord",key);
            },
            get(id){
                return FormDownloadRecordApi.get(id);
            },

            save(){
                return FormDownloadRecordApi.save(this.mdl);
            },

        }
    }
</script>
<style>
    .relick a{
        margin-right: 10px;
    }

</style>
